home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / gg_m103.zip / M.HLP < prev    next >
Text File  |  1994-04-06  |  7KB  |  160 lines

  1.         M's HELP FILE
  2. The Alternate and Control keys are used like the shift key. In this help
  3. text we abreviate Control by a ^ and Alternate by Alt.  For example:
  4. [^X] = Control X.  Typing an Escape is equivalent to holding the Alt key down.
  5. (Keystrokes are written in square brackets.)
  6.  
  7.     EDIT MODES
  8. [^X M] followed by one of [C] [O] [W] [X] [S] [I] [T] [P] or [B] Toggle Mode:
  9. C) Cmode: toggles smart indenting, parenthesis matching, C programming mode
  10. O) Overwrite: toggles between overwriting and inserting
  11. W) Wrap: toggles on/off automatic line wrapping (usually for a text mode)
  12. X) Exact: toggles search case sensitivity
  13. S) Scroll: toggles the vertical scrolling method
  14. I) cIndent: toggles the C indentation method
  15. T) Tab: toggles the use of hard tabs
  16. P) regular exPressions: searches use regular expressions
  17. B) Binary: toggles displaying as a binary
  18.  
  19.     CURSOR MOTION  (Arrow keys are Right Left Up Down)
  20. [Right]==[^F] forward            [Left]==[^B] backward
  21. [Up]==[^P] up                [Down]==[^N] down
  22. [PageUp]==[Alt V] page up        [PageDown]==[^V] page down
  23. [Home]==[^A] front of line        [End]==[^E] end of line
  24. [HomeHome] top of page            [EndEnd] bottom of page
  25. [HomeHomeHome]==[Alt <] top        [EndEndEnd]==[Alt >] end
  26. [^Right]==[Alt F] forward word        [^Left]==[Alt B] backward word
  27. [^Up] up paragraph            [^Down] down paragraph
  28. [Alt G (number)] goto linenumber    [^X .] exchange cursor with mark
  29.  
  30.     DELETING AND COPYING
  31. [^T] transpose characters        [Alt C] capitalize word
  32. [Alt L] lowercase word            [Alt U] uppercase word
  33. [Backspace] delete left            [Del]==[^D] delete right
  34. [^Backspace] delete word left        [Alt Backspace] copy word left
  35. [^Del]==[Alt D] delete word right    [Alt Del] copy word right
  36. [Alt ,] delete whitespace right        [Alt .] delete whitespace
  37.  
  38. [Alt Spacebar]==[^Spacebar] sets mark at the cursor position,
  39. [Alt ^Spacebar] sets a Column mark at the cursor position
  40. [^K] kill to end of line, store in kill buffer
  41. [Alt K] kill line, store in kill buffer
  42. [^Y] yank a copy of the kill buffer to the current cursor position
  43. [Alt Y] yankPop; cycle through the ring of kill buffers
  44. [Alt ^Y] columnYank, yanks the current kill buffer in a column way
  45. [^W] wipes from last mark to cursor, stores in kill buffer
  46. [Alt W] copies from last mark to cursor into kill buffer
  47.     
  48. The general procedure for copying or moving text is:
  49. 1) Mark the beginning of a block using [Alt Spacebar]
  50. 2) Move the cursor to the end of the block.
  51. 3) Delete [^W] or copy [Alt W] into the kill buffer.
  52. 4) Move the cursor to the new location and [^Y] yank it back.
  53.  
  54.     SEARCHING AND REPLACING
  55. [Alt ^F] forward to matching )]}    [Alt ^B] backward to matching {[(
  56. [^S] isearch forward            [Alt S] repeat last search
  57. [^R] reverse isearch            [Alt R] repeat last reverse search
  58. [Alt ^R] jumbo replace dialog        [Alt ^S] jumbo search dialog
  59. [Alt T] tag search (uses "tags" file)    [Alt Q] function search
  60. During an isearch: [bacspace][^-] undo, [^S][^R] repeat, [^G][ESCAPE] exit
  61. [^Y] yanks, [Alt Y] yankPops, [Alt /] wordContinuation
  62. In Exact Mode searches are case sensitive
  63. Otherwise searches are lower case insensitive, upper case sensitive
  64.  
  65.     FILE CONTROL
  66. [^X ^F] open a newfile            [^X R] revert to save
  67. [^X K] kill this file            [^X ^W] rename and write this file
  68. [^X ^S] save this file            [^X S] save all modified files
  69. [^X ^C] exit querying changed files    [Alt Z] exit saving changed files
  70. [^X I] insert a file at the cursor
  71.  
  72. In File Dialogs, the "*" wildcard is legal in file and directory names... 
  73. The "**" wildcard matches directory names "." and all subdirectories
  74. [Spacebar] or [TAB] in a file/buffer Dialogs continues the 
  75. path/file/buffer name, it may bring up a file list box...
  76.  
  77.     WINDOW CONTROL
  78. [^L] center the cursorline        [^Insert]==[^X O] other window
  79. [Insert]==[^X X] next buffer        [Shift Insert] last buffer
  80. [^X B] goto the queried buffer        [^X ^F] goto/open the queried file
  81. [^X 1] make one fullsized window    [^X 0] remove this window
  82. [^X 2] split window horizontally    [^X 5] split window vertically
  83. [Alt endkey] grow window right        [Alt homekey] shrink window left
  84. [Alt pagedownkey] grow window down    [Alt pageupkey] shrink window up
  85. [Alt (arrow key)] move window
  86. [Alt +] bookMark >> P=pop spacebar=push 123456789=goto window configuration    
  87. [Alt =] pop window configuration
  88.  
  89.     LINE WRAPPING
  90. [Alt P] reformat the current paragraph/comment (in Cmode)
  91. [^TAB] retab the line 
  92. [Alt TAB] set wrap index and (multiple sized) tabs, e.g.: tabs=2 8 4
  93.  
  94.     UNDO
  95. [^-] undo                [Alt -] redo
  96.  
  97.     MACROS
  98. [Alt M] load a macro (store keys)   [Alt ^M] save all current macros
  99. [ESCAPE (number) (key)] execute (key) the given (number) of times
  100.  
  101.     HELP
  102. [^H H] bring up this help        [^H B] describe keyBindings
  103. [^H F] describe Functions
  104.  
  105.     SHELLS
  106. [^Z] begins a dos shell
  107. [^X N] runs a dos command and captures the output...
  108. The default command is gmake, which is a make facility...
  109. [Alt N] go to next error...
  110. Used repeatedly after [^X N], we parse the output of [^X N]
  111. and go to the file and line number of the next error.
  112.  
  113.     MISCELANEOUS
  114. [^G] is the all purpose abort.
  115.     
  116. [^Q (any key)] quoted insert, inserts the key as a literal...
  117. in Binary mode you can insert hex
  118.     
  119. [Alt I] information,    [D]-Date, [T]-Time, [P]-Pathname, [A]-Absolutepath,
  120.             [+] count++, [-] count--, [=] count, [0-9] set count
  121.  
  122. [^X D] diff Directories
  123. [^X E] compares 2 windows (equal), does a diff from the cursors
  124. [^X ^E] compares 2 windows (equal), resyncronizes diff'ing lines
  125. Exact Mode diffs are white space sensitive, else white insensitive.
  126.  
  127. [Alt X] execute named command (space does commandContinuation)
  128.  
  129. [Alt /] word continuation
  130.  
  131. Care and Feeding of M:
  132.     1) Put M.EXE on your path
  133.     2) Set TMP to a directory for temp files (in the autoexec):
  134.     set TMP=c:\temp        // Periodically empty this directory.
  135.     3) Set HOME to a directory, the macrofile and startfile live here
  136.     set HOME=c:\home
  137.     4) Optionally set SWAPDIRS as a path variable to use for swap files
  138.     set SWAPDIRS=d:\temp;c:\temp;j:\temp
  139.     m will swap to d:\temp until it is full than to c:\temp etc.
  140.     5) Optionally set the environment variable M (in the autoexec):
  141.     set M= a2-+*/()[]{} -i -s -cXXXXXX -t4 -p -wXXX -0
  142.     -a1,a2    set alphabets,    a1=wordChars,    default is A-Za-z0-9_
  143.                 a2=symbolChars,    no default
  144.     -b  keep one backup, saves original files to backups
  145.     -c  XXXXXX is a 6-digit hex number specifying colors
  146.         Each digit controls a letter or a background color
  147.     -f  don't Fall out bottom
  148.     -h  hard tabs, (indentation is a mix of spaces and tab chars)
  149.     -i  toggle cIndent Mode, same as [^X M I]
  150.     -j  keep journal files (keystroke journaling)
  151.     -l  load file lines as text always... (don't auto sense binary)
  152.     -p  paid your money, (don't show startup message)
  153.     -P  poll source files, track unexpected changes to the source files
  154.     -s  toggle the Scroll Mode, see [^X M S]
  155.     -t,-tc  set the tabs... -tc2 will set cmode tabs to 2
  156.     -v  attempt checkout of read only files
  157.     -w  set wrap column, XXX is a decimal number
  158.     -0  column numbers begin at 0 instead of 1
  159.     6) Optionally set up an M.CFG file, see m.tut
  160.